package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.GoodsPurchaseDetail;

/**
 * 采购订单明细Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-13
 */
public interface GoodsPurchaseDetailMapper 
{
    /**
     * 查询采购订单明细
     * 
     * @param purchaseDetailId 采购订单明细主键
     * @return 采购订单明细
     */
    public GoodsPurchaseDetail selectGoodsPurchaseDetailByPurchaseDetailId(Long purchaseDetailId);

    /**
     * 查询采购订单明细列表
     * 
     * @param goodsPurchaseDetail 采购订单明细
     * @return 采购订单明细集合
     */
    public List<GoodsPurchaseDetail> selectGoodsPurchaseDetailList(GoodsPurchaseDetail goodsPurchaseDetail);

    /**
     * 新增采购订单明细
     * 
     * @param goodsPurchaseDetail 采购订单明细
     * @return 结果
     */
    public int insertGoodsPurchaseDetail(GoodsPurchaseDetail goodsPurchaseDetail);

    /**
     * 修改采购订单明细
     * 
     * @param goodsPurchaseDetail 采购订单明细
     * @return 结果
     */
    public int updateGoodsPurchaseDetail(GoodsPurchaseDetail goodsPurchaseDetail);

    /**
     * 删除采购订单明细
     * 
     * @param purchaseDetailId 采购订单明细主键
     * @return 结果
     */
    public int deleteGoodsPurchaseDetailByPurchaseDetailId(Long purchaseDetailId);

    /**
     * 批量删除采购订单明细
     * 
     * @param purchaseDetailIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGoodsPurchaseDetailByPurchaseDetailIds(Long[] purchaseDetailIds);

    int insertMany(List<GoodsPurchaseDetail> children);
}
